<div class="login-form">
	<form id="loginform" method="post" action="<?php echo $this->baseUrl() ?>/cp/auth">
		<p>
			<label>
				E-mail użytkownika:
				<br/>
				<input id="email" type="text" tabindex="10" size="20" value="" name="email"/>
			</label>
		</p>
		<p>
			<label>
				Hasło:
				<br/>
				<input id="password" type="password" tabindex="10" size="20" value="" name="password"/>
			</label>
		</p>
		<p class="submit">
			<a id="submit" onclick="$('#loginform').submit()" class="button right">Zaloguj się</a>
			<div class="clear"></div>
		</p>
	</form>
</div>
<script type="text/javascript">

	$(document).ready(function(){

	    $('#password').keydown(function(e){
	        if (e.keyCode == 13) {
	            $(this).parents('form').submit();
	            return false;
	        }
	    });
			
	
	});

</script>